.idcard-upload-container {
    margin-top: 9px;
    display: inline-block;
    position: relative;
    z-index: 0;
    width: 160px;
    height: 120px;
    border: 1px solid #eee;
    border-radius: 2px;
    transition: 0.2s;
    cursor: pointer;
    color: #555;
    user-select: none;

    img {
        vertical-align: top;
    }

    & + .idcardUpload-container {
        margin-left: 10px;
    }

    &:hover,
    &:active {
        color: #009688;
    }

    > .idcard-upload-select-file,
    > .idcard-upload-image-preview {
        height: 100%;
        width: 100%;
    }

    > .idcard-upload-image-preview {
        position: relative;
        z-index: 0;
        display: none;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        overflow: hidden;
        > .idcard-upload-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            background-color: #000;
        }
        > .idcard-upload-layer {
            content: "重新选择";
            position: absolute;
            z-index: 1;
            left: 0;
            right: 0;
            bottom: 0;
            padding: 10px;
            text-align: center;
            font-size: 12px;
            color: #fff;
            background-color: rgba(0, 0, 0, 0.1);
            background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8));
            transform: translateY(100%);
            transition: 0.2s;

            &:hover {
                background-color: rgba(0, 0, 0, 0.25);
            }
        }

        &:hover {
            > .idcard-upload-layer {
                transform: translateY(0%);
            }
        }
    }

    > .idcard-upload-select-file {
        position: relative;
        z-index: 0;

        > .idcard-upload-select-file-center {
            position: absolute;
            z-index: 1;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            width: 100%;
            > .idcard-upload-icon {
                font-size: 48px;
            }

            > .idcard-upload-text {
                font-size: 12px;
            }
        }
    }
}
